package com.wanxi.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
//        System.out.println(LocalDate.now());
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(simpleDateFormat.format(new Date()));
        ;
        int a = 1;
        DateFormat dateFormat = SimpleDateFormat.getDateInstance();
        dateFormat.format(new Date());
        SimpleDateFormat.getDateInstance().format(new Date());
        Object[] objects = {1, "a", new Date()};
        double b = 129.9;
//        a += b;//隐式的强制转换
//        a=a+b;
        System.out.println(a);
    }
    public void aa(){
//Integer.parseInt("aa")
        Math.random();
    }
}
